package com.lwj.liwanjia.model;

import com.google.android.gms.common.api.Api;
import com.lwj.liwanjia.api.ApiService;
import com.lwj.liwanjia.bean.AlipayBean;
import com.lwj.liwanjia.utils.RetrofitHelper;

import java.util.Map;

import retrofit2.http.QueryMap;
import rx.Subscriber;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

/**
 * Created by Administrator on 2017/10/20.
 */

public class IndentAlipayModel {
    public void getIndentAlipayInfo(@QueryMap Map<String, Object> map, Subscriber<AlipayBean> subscriber) {
        RetrofitHelper.getSingleRetrofit()
                .create(ApiService.class)
                .getIndentAlipayInfo(map)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(subscriber);
    }
}
